<?php

declare(strict_types=1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

class ShipmentTrace extends Model
{
    use SoftDelete;

    protected $name = 'shipment_traces';

    protected $autoWriteTimestamp = 'datetime';

    protected $json = ['raw_data'];

    public function shipment()
    {
        return $this->belongsTo(Shipment::class, 'shipment_id');
    }
}
